package com.lin.spring.cloud.action.service;

import com.lin.spring.cloud.action.model.License;
import org.springframework.stereotype.Service;

import java.util.UUID;

@Service
public class LicenseService {
    public License saveLicense(String licenseId) {
        return new License().withId(licenseId)
                .withOrganizationId(UUID.randomUUID().toString())
                .withLicenseType("test licenseType")
                .withProductName("test productName");
    }

    public void saveLicense(License license) {

    }

    public void updateLicense(License license) {

    }

    public void deleteLicense(License license) {

    }
}
